package Drivers;

import javax.xml.ws.Endpoint;

import net.webservicex.stockcurrencyconvert.StockPriceConvertImp;
import net.webservicex.stockcurrencyconvert.StockPriceConvert;

public class Webservice_publisher {
		    /**
	     * Main.
	     * @param args the server port number
	     */
	    public static void main(String args[]) 
	    {
	    	StockPriceConvert ts = new StockPriceConvertImp();
	        String url = "http://localhost:8085/ts";
	        
	        System.out.printf("Publishing service %s to %s ...\n", 
	                          ts.getClass().getName(), url);
	        
	        // 1st argument is the publication URL
	        // 2nd argument is an SIB instance
	        Endpoint.publish(url, ts);
	    }
	}